package com.zhfi.dataapply.util;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

public class BaseMapperUtil {

    public static void updateOrInsert(BaseMapper baseMapper, Object object){
        int i = baseMapper.updateById(object);
        if (i <= 0) {
            baseMapper.insert(object);
        }
    }

}
